<?php
    namespace app\test\controller;
    use think\Controller;
    use app\index\model\User as UserModel;

    class Index extends Controller
    {
        // 分页列表
        public function index()
        {
            $list = UserModel::paginate(3);
            $this->assign('list',$list);
            $this->view->replace([
                '__PUBLIC__' => '../public/static',
            ]);
            return $this->fetch('list');
        }
    }
?>